package com.zsd.android.complier.utils;

import java.util.List;
import java.util.Map;
import java.util.Set;

import javax.annotation.Nullable;

public class TextUtils {

    public static boolean isEmpty(@Nullable CharSequence str) {
        return str == null || str.length() == 0;
    }

    public static boolean isEmpty(@Nullable Map map) {
        return map == null || map.isEmpty();
    }

    public static boolean isEmpty(@Nullable Set set) {
        return set == null || set.isEmpty();
    }

    public static boolean isEmpty(@Nullable List list) {
        return list == null || list.isEmpty();
    }
}
